package me.zhengjie.modules.fund.repository;

import me.zhengjie.modules.fund.domain.FundNetValue;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.Date;

public interface FundNetValueRepository extends JpaRepository<FundNetValue, Long>, JpaSpecificationExecutor<FundNetValue> {

    FundNetValue findFirstByCodeOrderByDateDesc(String code);

    FundNetValue findByCodeAndDate(String code, Date date);
}
